home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / The Hacks! / COSEmulator / COSEmulator- SRC / headers / Screen.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-06-21  |  990 b   |  52 lines  |  [TEXT/CWIE]

  1. #ifndef _Screen_h_
  2. #define _Screen_h_
  3.  
  4. #include "GameTypes.h"
  5. #include "Blitters.h"
  6.  
  7.  
  8. #define kMaxUpdate            30
  9.  
  10. class    COSScreen
  11. {
  12. public:
  13.     COSScreen( void );
  14.     ~COSScreen( void );
  15.     
  16.     Boolean    InitScreen( void );
  17.  
  18.     void    RestoreScreen( void );
  19.  
  20.     void    DrawAll( void );
  21.     void    AddRectToUpdate( rect theRect );
  22.     void    UpdateMainWindow( void );
  23.     
  24.     Boolean    InViewArea( point where );
  25.     Boolean    RectAllInScreen( const rect *where );
  26.     
  27.     void    DrawGeneric(     OffScreenBuff *srcBuff , rect *srcRect , 
  28.                                 rect *destRect , rect *crop , ushort options , 
  29.                                 uchar more , ushort color , Boolean menu = false);
  30. private:
  31.     void    AdjustRect( rect *theRect );
  32.     void     CleanUp( rect *where );
  33.  
  34. // hiding bar thing
  35.     long            OldMBarHeight;
  36. //
  37.     uchar            numUpdate;
  38.     rect            update[ kMaxUpdate ];
  39.  
  40.  
  41. //
  42.     Boolean            drawAll;
  43.     WindowPtr        screen;
  44.     OffScreenBuff    viewBuffer;
  45.     rect            viewArea;    // what can be drawn on, below menu bar
  46.     rect            screenSize;    // total area of screen
  47. };
  48.  
  49. // global
  50. extern    COSScreen    screen;
  51.  
  52. #endif